<?php
declare (strict_types = 1);

namespace app\index\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class WorkermanRecord extends Model
{
    protected $pk = "id";

    /**
     * 添加内容
     * @param $addData
     * @return int|string
     */
    function addData($addData){
        return $this->insertGetId([
            'client_id'=>$addData['client_id'],
            'content'=>$addData['content'],
            'remark'=>$addData['remark'],
            'create_time'=>date("Y-m-d H:i:s"),
            'update_time'=>date("Y-m-d H:i:s"),
        ]);
    }



}
